package main;

import ui.Window;
import define.Common;

public class Excel2 
{
	public static void main(String[] args)
	{
		if(args.length == 0)
		{
			Common.m_hasUI = true;
			new Window();
		}
		else
		{
			Common.m_hasUI = false;
			try 
			{
				new Args(args).execute();
			} 
			catch(ErrorException e) 
			{
				new ErrorHandler(e);
			}
			System.exit(ErrorHandler.getErrorCode());
		}
	}
}
